Skip to content

feat: expose method source in API discovery - #570

Closed
ankush wants to merge 1 commit into
frappe:developfrom
ankush:feat/expose-discovery-source
Closed

ankush wants to merge 1 commit into
frappe:developfrom
ankush:feat/expose-discovery-source

Conversation

@ankush

@ankush ankush commented Oct 28, 2026

Copy link
Copy Markdown
Member

Set the expose_discovery_source hook. The API discovery endpoints (/api/v2/discovery/...) then show the source code of the whitelisted methods of this app.

This helps API clients, such as AI agents, to understand what a method does. The app is open source, thus it is safe to show the source.

Ref: frappe/frappe#40757

🤖 Generated with Claude Code

Set the expose_discovery_source hook. The API discovery endpoints then show the source code of whitelisted methods of this app. This helps API clients, such as AI agents, to understand what a method does. The app is open source, thus it is safe to show the source.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@ankush ankush closed this Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant